﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLHD.Entity.Manipulation
{
    public class HopDong
    {
        public class objHD : BaseEntity
        {
            public long HopDongID { get; set; }

            public string SoHD { get; set; }
            public long DanhMucHopDong { get; set; }
            public DateTime NgayKy { get; set; }
            public DateTime NgayDanhSo { get; set; }
            public long HoTenSale { get; set; }
            public string TenNhanSu { get; set; }
            public long KhachHang { get; set; }
            public string TenKhachHang { get; set; }
            public List<NoiDungHD> NoiDungHD = new List<NoiDungHD>();
            public int countNoiDungHD { get; set; }
            public decimal GiaTriHD { get; set; }
            public List<SoLanTT> SoLanTT = new List<SoLanTT>();
            public int countSoLanTT { get; set; }

        }

        public class NoiDungHD
        {
            public long HopDongChiTietID { get; set; }
            public int id { get; set; }
            public long HopDongID { get; set; }
            public long NhanHang { get; set; }
            public string TenNhanHang { get; set; }
            public long NhomNghanh { get; set; }
            public string TenNhomNganh { get; set; }
            public long HinhThucQuangCao { get; set; }
            public string TenHinhThucQuangCao { get; set; }
            public long LoaiSanPham { get; set; }
            public string TenSanPham { get; set; }
            public long NhomWebsiteTag { get; set; }
            public string TenTag { get; set; }
            public long Website { get; set; }
            public string TenWebSite { get; set; }
            public long ChuyenMuc { get; set; }
            public string TenChuyenMuc { get; set; }
            public long Banner { get; set; }
            public string TenBanner { get; set; }
            public int LoaiBanner { get; set; }
            public int SoLan { get; set; }
            public long DonViTinh { get; set; }
            public string TenDonViTinh { get; set; }
            public decimal GiaTien { get; set; }

            public long ChietKhauP { get; set; }
            public decimal GiaTri { get; set; }
            public int CKTriAnP { get; set; }
            public decimal GiaTrCKTriAn { get; set; }
            public int TongChietKhauP { get; set; }
            public decimal GiaTriCK { get; set; }
            public decimal ThanhTienSauCK { get; set; }
            public int TyLeHoaHongP { get; set; }
            public decimal GiaTriHoaHong { get; set; }
            public int TyLeHoaHongTriAnP { get; set; }
            public decimal GiaTriHoaHongTriAn { get; set; }
            public int KhuyenMai { get; set; }
            public string GhiChu { get; set; }
            public long TaiKhoanAdmk { get; set; }
            public string TenTaiKhoanAdmk { get; set; }
            public int IsDelete { get; set; }
        }

        public class SoLanTT
        {
            public long ThongTinThanhToanID { get; set; }
            public long HopDongID { get; set; }
            public int id { get; set; }
            public DateTime Ngay { get; set; }
            public decimal SoTien { get; set; }
            public DateTime NgayDKXHD { get; set; }
            public int IsDelete { get; set; }
        }

        public class ListHD : BaseEntity
        {
            public long HopDongID { get; set; }
            public string SoHD { get; set; }
            public string TenNhanSu { get; set; }
            public string TenBoPhan { get; set; }
            public string TenKhachHang { get; set; }
            public string NhanHang { get; set; }
            public decimal GiaTriHD { get; set; }

        }
    }
}
